Fixed bugs in Animator.