fixed cancelAnimationFrame