diff --git a/bip39-standalone.html b/bip39-standalone.html
index 9ab9552..9a40252 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -14717,7 +14717,6 @@ var Mnemonic = function(language) {
function bip44Changed() {
setBip44DerivationPath();
- derivationPath = DOM.bip44path.val();
derivationChanged();
}
@@ -14945,6 +14944,7 @@ var Mnemonic = function(language) {
path += account + "'/";
path += change;
DOM.bip44path.val(path);
+ derivationPath = DOM.bip44path.val();
}
function parseIntNoNaN(val, defaultVal) {
diff --git a/src/js/index.js b/src/js/index.js
index 2f7815d..676684b 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -135,7 +135,6 @@
function bip44Changed() {
setBip44DerivationPath();
- derivationPath = DOM.bip44path.val();
derivationChanged();
}
@@ -363,6 +362,7 @@
path += account + "'/";
path += change;
DOM.bip44path.val(path);
+ derivationPath = DOM.bip44path.val();
}
function parseIntNoNaN(val, defaultVal) {