fixed error, added removal from all_pages