fixed getGroups