fix error when event_type can be None now