Fix a bug with proxy and proxyauth