Corrected bug saving canonical name strings.