diff --git a/dist/protocol.esm.js b/dist/protocol.esm.js
index 0132583116ed666e001a3d781a3c7a3891901688..725de27d5deda33d11ce966afb2033e475d59046 100644
--- a/dist/protocol.esm.js
+++ b/dist/protocol.esm.js
@@ -135,11 +135,11 @@ class GenericSoarProtocol extends GenericProtocol {
     let repository = "https://git.noc.ac.uk/communications-backbone-system/backbone-message-format";
     // TODO check this path resolves for tags
     let url = `${repository}/-/raw/${version}/project/soar/swagger.json`;
-    this.schema = this.axios.get(url)
+    return this.axios.get(url)
     .then((response) => {
+      this.schema = response.data;
       return response.data;
     });
-    return this.schema;
   }
 
   /**
diff --git a/dist/protocol.js b/dist/protocol.js
index d75a073eba328466dc0415ef0262ee5f969cbb4d..e91ec20c17f62b8cb928b86427aea156f5349f9f 100644
--- a/dist/protocol.js
+++ b/dist/protocol.js
@@ -137,11 +137,11 @@ class GenericSoarProtocol extends GenericProtocol {
     let repository = "https://git.noc.ac.uk/communications-backbone-system/backbone-message-format";
     // TODO check this path resolves for tags
     let url = `${repository}/-/raw/${version}/project/soar/swagger.json`;
-    this.schema = this.axios.get(url)
+    return this.axios.get(url)
     .then((response) => {
+      this.schema = response.data;
       return response.data;
     });
-    return this.schema;
   }
 
   /**
diff --git a/src/protocol/index.js b/src/protocol/index.js
index ad7d38687b1657e515b144a72a88e4fe9b66d943..5f65b225efd91e4b1e260f857366149b44aef7a8 100644
--- a/src/protocol/index.js
+++ b/src/protocol/index.js
@@ -135,11 +135,11 @@ export class GenericSoarProtocol extends GenericProtocol {
     let repository = "https://git.noc.ac.uk/communications-backbone-system/backbone-message-format";
     // TODO check this path resolves for tags
     let url = `${repository}/-/raw/${version}/project/soar/swagger.json`;
-    this.schema = this.axios.get(url)
+    return this.axios.get(url)
     .then((response) => {
+      this.schema = response.data
       return response.data;
     });
-    return this.schema;
   }
 
   /**