fix bug of animation