Fixed glitch on animation end