Fix bug that prevented new pages from being saved.