fix bug with scrollsToTop