Fixed an issue with the event_handlers attribute logic where it would ignore type