handle total_records when fetching collections