moving the resetAggregators call to avoid unnecessary resets of the aggregator data