fixes for chat exit and join