Fixing set_proxyinfo when is gave invalid values