Fix handler case of invocation spec.