small fix for events