fix connection to the server at ws: error