Bugfix history on click