Fix pagination for fetching remote objects