more fixes to delete_page()