Fixed annoying flicker bug when advancing to the next page.