Nodes at the root were not being created unless they had children