fix for not smooth scroll