fix disconnecting