still more important fixes for delete_node