Corrected error in aggregator