Fixed bug with missing aggregations