correcting xpath expressions