Fix getPageWithFactory