fix for websocket exception