fix for groupBy returning Iterable