Fixed an animation bug