add missing return in event error