aggregation bug solved