[agg] Fix bug in published agg.