fixed a syntax error in xAsFunction