fix smooth scrolling