fixed bug on aggregator