Fix bug when scroll bar disappears with big files