Fix insertion of linked nodes.