RuleGroup.next needs to be defined