Issue #81: fix history

The refactor with colorvalue screwed up some input values. Fixed this.
Merge pull request #82 from jimmysong/81

Issue #81: fix history