Bugfix - code not aded to history