fix websocket connections