Fixing error on removing page.