Fix call to groupBy