fixed errors in proxyRead