Fixed some broken code in Proxy.js