Fix a bug in the source importer