Fix can't insert when grouping.