Fixed bug in the arrangement of chat history that was previously reversed