Fix bug in DynamicDescriptor.set_value()