fix disconnection