fixed events_count