fixed bugs with importer