fix it if main_event doesn't exist