bug fix for xpaths