fix bug: createConnection.onerror