Updated bug in render_page()