Fixed a bug related to scrollbars