Fixed duplicate page removal