fix udf loading bug to work well