fix problem with scroll position