Bug fix tasks in loadRecords