fix eventsId generator