Fix for _fillMaterial() in SmartFactoryModelBase.as