fixed issue #364 'proxyError' event emitted twice