Invoke works, but not for connect