Fix scroll-bar-mode bug