Fixed grouping error