try to fix the grouping position bug