Fixing logic bug in scroll bar appearance.