Fixes type materials spec.