Fix Illegal invocation