fixed animation bugs