Fix issue with value deserialization in the widget.