fix error message in case no event name defined