Correctly append defined units to the history vector
Merge pull request #1 from duarten/patch-1

Correctly append defined units to the history vector