Fixed a bug in the refactored importer.