fixed cancel bug