Fix empty grouping.