Fixed XPath bug.