Clang meterial Index type fix