aiMaterial template specialization fix.