Fix search highlighting and unhighlighting.