attempt to fix smooth scrolling error