Fixed history formatting