fixed typo in `update_record`