Fix bug if no socks proxy present.