Fixed scrollTo bug