Fixed bug checking events with actions.