small fix for ordering of events