added some failure tolerance for segments, which point to a text end
which is bigger than the text size