Fixing a bug where pagination would break when coming back from offline