fix hightlighting err when endOfText