Can't add measurements to the closed curve

I’m trying to add measurements to the closed curve markup:

> # Create a new measurement instance
> 
> last_one = slicer.vtkMRMLMeasurementLength()
> 
> # Configure the new measurement
> 
> last_one.SetName("last_one")
> 
> last_one.SetUnits("mm")
> 
> last_one.SetValue(80.00) # Set the value
> 
> # Add the new measurement to the closed curve node
> 
> cc.AddMeasurement(last_one)

But every time I change the enabled status, by toggling or untoggling on the list, the value is gone. I believe the issue may lie with the observers, since they are different in existing measurements. But I cannot get them to change…