fix to convert(Function, ex)