Animation glitch solved