Fix bug in caching of values that prevents values from being updated.