fix number of events