Fixed the page deletion not working