Fix allGroups() throwing [StackOverflow].