Fix the material insert.