fixed animation bugs

fixed animation bugs