fixed the history of chatroom