diff --git a/index.js b/index.js
index 4e297a771d78923d974da342498f4b16204ba613..60a0ce3624994f612e4050426a14d112c951ccdb 100644
--- a/index.js
+++ b/index.js
@@ -165,6 +165,7 @@ async function start(fields, cozyParameters) {
       consent,
       serviceId.toString()
     )
+    console.log(consent)
     // Save bo id into account
     const accountData = await getAccount(ACCOUNT_ID)
 
@@ -228237,8 +228238,13 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) {
   })
 
   try {
+    log('debug', parsedReply)
+    if (!parsedReply) {
+      return null
+    }
     const currentContracts = parseContracts(parsedReply)
     let currentContract = null
+    // log('debug', 'current contract size length', currentContracts.length)
     if (Array.isArray(currentContracts)) {
       currentContract = parseContracts(parsedReply)[0]
     } else {