fix search_node() method