fixed rotating when animation bug