fix bug with connect