Fixed minor bug with xpath