Fixed premature showing of scrollbar