fix illegal invocation bug