Fixed remove and getPages operations.