Fix for scroll bars appearing unnecessarily