Fixed useProxy() check