leaving in event error