fix bug of delete_node