scroll position bug fix