Fixed iterative_find_nodes exit condition
Bugfix