fixing scrollpostion bug