fixed a particular case of scrolling