Fix XPath

Prevent "SyntaxError: indices in path predicates are 1-based, not 0-based".