bugfix about join/leaving chatroom