Fixed bug from using enums as events.