Fix aggregate_by bug
Review actions
Merge pull request #1189 from dkillick/aggregate-by_bug

Fix aggregate_by bug