add failure tolerance for xpath problem
xpath fix improvement