fix bug in '.scrollTo()' method