fix groupby selection