fixed some scrolling bugs