aggregation returning properly for the category view