fixed xpath bug #21