diff --git a/package.json b/package.json
index 3745d60d23cf5c1aad07162b054985b43501e6ce..03d4a71675c1f379b7f21571fe70ccfcdcf4a59e 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
   "keywords": [],
   "author": "Cozy Cloud",
   "license": "AGPL-3.0",
-  "main": "./src/index.js",
   "eslintConfig": {
     "extends": [
       "cozy-app"
diff --git a/src/index.js b/src/index.js
index 2b078e30f52970c9862a147772bfed633b3fb829..cd15b0664bef0290aaa6fa23b099054306e29f32 100644
--- a/src/index.js
+++ b/src/index.js
@@ -168,7 +168,7 @@ async function start(fields, cozyParameters) {
     // Save bo id into account
     const accountData = await getAccount(ACCOUNT_ID)
 
-    await saveAccountData(this.accountId, {
+    await saveAccountData(ACCOUNT_ID, {
       ...accountData.data,
       consentId: consent.ID,
       expirationDate: contractEndDate,