Fixed bug crashing after leaving waitRoom