Fix nested pages.