Fixed an animation bug.