fix scrolltop calculation