fix the proxy bug