fix __delete_node() method