Fix material name method