fix prevents deletion of parent pages