fix bugs about chatroom