fixed websocket issue