yin parser BUGFIX type name (if had a prefix) dictionary bug
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 6bad394..d9db067 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -262,10 +262,11 @@
             goto error;
         }
         ++name;
+        name = lydict_insert(module->ctx, name, 0);
+        lydict_remove(module->ctx, value);
     }
 
     rc = resolve_superior_type(name, type->module_name, module, parent, &type->der);
-    lydict_remove(module->ctx, value);
     if (rc == -1) {
         LOGVAL(LYE_INMOD, LY_VLOG_NONE, NULL, type->module_name);
         goto error;