fixed restart disconnect bug