Animation wont revert back to idle animation

My animations after being hit doesnt revert back to my idle animation. The dodge back anmiation is supposed to play after being hit by a mesh and then is supposed to revert back to idle. However it just stays as the dodge back animation. looping isnt on and the dodge back animation will aslo play at random times without being hit by anything.