Fix event type