Fix a bug where pagination was happening before some pages were registered.