fixed clientconnect()