fix page deletion