Fix history display error