Fixed title field creates empty json objects

Change-Id: I1ccecacde9c5538b29ff219279538c8ea98beaa2
diff --git a/web/api/src/main/resources/docs/swagger-ui.js b/web/api/src/main/resources/docs/swagger-ui.js
index fee54e4..e66cd5a 100644
--- a/web/api/src/main/resources/docs/swagger-ui.js
+++ b/web/api/src/main/resources/docs/swagger-ui.js
@@ -2988,7 +2988,7 @@
 
     if (schema.$ref) {
       modelName = schema.title || Helpers.simpleRef(schema.$ref);
-      model = models[modelName];
+      model = models[Helpers.simpleRef(schema.$ref)];
     } else if (_.isUndefined(name)) {
       modelName = schema.title || 'Inline Model ' + (++inlineModels);
       model = {definition: schema};