Fixed UDF execution