Fixed AnimationState error.