Fixed bugs retrieving all the events in the map.