fixed bug websocket