Animation loop fixed