Fixed disconnect failure bug