Replace materials in the same position.