To reiterate, I don't think we should fix this now. But, this does introduce a potential bug because below you also remove any other items out of values. So if values has five items in it and value is set to a new item that is considered by the content to be equal to the first one, you are clearing out values when you should leave it the way it is.