cancel event bug