fixed cancel event issues