Fixed udf execution