Fix bug in activityMap