fix issue with pages going beyond the bounds when scrolling fast