Fix paged groupby