fix bug in aggregated_prices