Fix paging/replication bug

While this may not be the (complete) source of intermittent paging/replication failures, it is certainly part of it.