further improved robustness of the scrolling algorithm