Fixed another typo in the udf_search loop