Fix 1D aggregates
Merge pull request #1875 from dennishendriksen/master

Fix 1D aggregates