Pages module: fix page delete function