Fixed the rotation animation glitch.