Fix procedure node finding bug