Fix bug in agg stats.