Fix event type argument parsing