fixed average calculations in OutputAggregator