fix the connect() method bug….