Fix history on load