Fixed incorrect iteration in combine_aggregation_lists.