Fixed event_set error