fix getFactoryWithStorageType of typesmart term factory