fix extra_select items in group by