fixed bugs in new value system