fix websocket connect