Correct XPath expression to avoid bizarre behaviour.