Fixed some animation glitches.