diff --git a/models/reference_ext.go b/models/reference_ext.go
index <HASH>..<HASH> 100644
--- a/models/reference_ext.go
+++ b/models/reference_ext.go
@@ -11,7 +11,7 @@ func (r *Reference) UnmarshalJSON(data []byte) (err error) {
 	ref := reference{}
 	if err = json.Unmarshal(data, &ref); err == nil {
 		splitURL := strings.Split(ref.Reference, "/")
-		if len(splitURL) >= 3 {
+		if len(splitURL) >= 2 {
 			ref.ReferencedID = splitURL[len(splitURL)-1]
 			ref.Type = splitURL[len(splitURL)-2]
 		}
Fix bug that caused parsing out components of references to fail