fix incorrect scrolling in the browser