more important fixes for delete_node