Fix broken pagination when lazy-loading a collection