delete_nodes fixed