Fix requestAnimationFrame