Fix the pagination logic for multiRecordCategory