find a bug: groupby