materialType fix