Fixed disconnect crash bug