Fixed error in the midia_attributes= method in the Material model.