Fix the aggregation bug.
Merge pull request #3 from adieu/master

Fix the aggregation bug.