bug fix for max_events per city