disables material field.