fix chatroom bugs