Fix xpath error