Fix history scrolling.