disconnect bug fix