Fix history display issues