Fixed event_type recoginition in error handling