history scrolling fix