Fixed bug where some pages wouldn't delete