added first text, and fix for positions in getXPath