fix a bug when scrolling down