fix get_xpath