Game Problem with shooting

I have a working platform game where you can shoot. The shooting works fine, but after you have shot, the idle animation for my character does not work, and if he stops running, he stands still but continues to do the run animation, and if he stops jumping, he just does the jump animation on the ground as well. I based my engine off nathan99’s (accessable on his website). Any help?