fixing minor bug with history stored value.