Fixed the history formatting