fix <websocket disconnect> bug