fixed requestAnimationFrame