Fixed disconnect to server problem