fixed the groupby error on localhost