cleaning up invalid material type