Fixed requestAnimationFrame tool.