fix websocket connection