Fix scrolling and highlighting.