Fix a bug with public pages not being set to public on loading from database.