Fixed some errors when importing cnchi files.