Fix the glitchs on the animations