Update requestAnimationFrame fix