fix bugs

fix bugs in animation