Fixed a typo in event type resolving