bug fix - correct the unlinking of pages