fix the bug when unauthenticated_events page crashes on event type change event