Fix the history file issue.