Fixing a fencepost problem sometimes resulting in copied nodes on the second level.