working on the chat history bug