fixed smooth-scroll bug where it would get stuck at the bottom in a very hacky way