fix materialType