Fix xpath bug