Fixed disconnection bug and invite bug