bugfix: count update no longer affects val.