Fix references to event_loop