Fix the nodes filter within wait_for_running_instances