Remove extra nextAnimationFrame call