fix length of the event list