diff --git a/source/nuPickers/Picker.cs b/source/nuPickers/Picker.cs
index 0831bd6..416a1b8 100644
--- a/source/nuPickers/Picker.cs
+++ b/source/nuPickers/Picker.cs
@@ -98,10 +98,10 @@ public Picker(int contextId, string propertyAlias, bool usePublishedValue = true
/// the dataType id of this picker
/// the alias of the dataType
/// the actual value saved
- internal Picker(int contextId, int parentId, string propertyAlias, int dataTypeId, string propertyEditorAlias, object savedValue)
+ internal Picker(int contextId, int? parentId, string propertyAlias, int dataTypeId, string propertyEditorAlias, object savedValue)
{
this.ContextId = contextId;
- this.ParentId = parentId;
+ this.ParentId = (parentId != null) ? (int)parentId : -1;
this.PropertyAlias = propertyAlias;
this.DataTypeId = dataTypeId;
this.PropertyEditorAlias = propertyEditorAlias;