fix invalid material file