fix requestAnimationFrame