Fix problem with ProxyConnection.connect