Fixed a glitch when scrollbars are introduced