Fixed bug in Animator.