Revert from mapreduce to aggregate