Fixed bug in MR that caused incomplete aggregation