Fixed issue if an groupby piece is already set.