Fix for illegal invokation