Parse material names, and fix incorrect byteLength of record.