fixed animation glitches