Fix for subtle race condition in Value.