Fix grouping to get the righ count of records when last grouping