chat history fix