websocket: fix errors.