websocket bugfix