websocket: fix some invalid read...