Fixed the data aggregation bug.