fix getPageWithFactory