Fixed a bug in the add_page template.