fix remaining bugs in fill_record_info