fix NewProxyServer logic