fix bugs

fix bugs for animation