fixing error on pagemanager render_page