Fix chat history acumulation