fix invocation crash