fix canceling an event