old_contents: from AbstractVisitor import AbstractVisitor
  
  from duralex.alinea_parser import *
  
  class ForkReferenceVisitor(AbstractVisitor):
      def visit_node(self, node):
          if 'type' in node and node['type'].endswith('-reference') and 'children' in node and len('children') > 1:
              for i in range(1, len(node['children'])):
                  ref = node['children'][i]
                  fork = copy_node(node, recursive=False)
                  remove_node(node, ref)
                  push_node(fork, ref)
                  push_node(node['parent'], fork)
  
          super(ForkReferenceVisitor, self).visit_node(node)
  
new_contents: from AbstractVisitor import AbstractVisitor
  
  from duralex.alinea_parser import *
  
  class ForkReferenceVisitor(AbstractVisitor):
      def visit_node(self, node):
          if 'type' in node and node['type'].endswith('-reference') and 'children' in node and len(node['children']) > 1:
              for i in range(1, len(node['children'])):
                  ref = node['children'][i]
                  fork = copy_node(node, recursive=False)
                  remove_node(node, ref)
                  push_node(fork, ref)
                  push_node(node['parent'], fork)
  
          super(ForkReferenceVisitor, self).visit_node(node)
  
subject: Fix ForkReferenceVisitor.visite_node calling len() on 'children' instead of node['children'].