fix text highlighting issue