fixed the sales aggregation function