Fixed an incorrect cast of an animation.