Fix for groupby from andgein