fix xpath exception