fix aggregation logging