Fixed UDF on cluster mode