fixed an issue with proxy connect if global proxy config is used