Fixed animation loop.