Fix to bug where same page would be processed 100 times