defineExpression bug fix