fix next page glitch