fix a bug of jumping inside the page