Fix scrolling and redoing search