small bug fix in FactoriesImporter