fix peer disconnect bug