Fix typo in previous commit

config.groups[nextGroup] was mysteriously changed to config.gorups[nextGroup].