Fix previewing of pages.