fixed bug with scrolling