fix websocket connect errors