xpath evaluateSingle and user var bug fix