fix multiple websocket connections