fix animation bugs

fix animation bugs