fixed websocket connection