Fix 'TextRecord' bug and display of 'DuplicateSymbolException'