fix various bug on aggregators