onEventName was not set correctly