fixes smoothScroll offset