Huiqing's fix for the output to make typed records display correctly.