fixing an issue with generating id for events with lots of data