Why is my character stopping in the middle of an animation?