improved error detection in the PosInTextRanges class