fix the calling of Disconnect