diff --git a/exec/load/fido_syscfg.js b/exec/load/fido_syscfg.js
index e584d00a168136b60dd14be4fb9f09d68532e2a0..7c14081f83033b6bdcd90f955cad2ef6acd6944d 100644
--- a/exec/load/fido_syscfg.js
+++ b/exec/load/fido_syscfg.js
@@ -56,10 +56,10 @@ function SBBSEchoCfg ()
 	}
 	else {
 		while ((line=ecfg.readln(65535)) != undefined) {
-			if (packer) {
-				if (line.match(/^\s*PACK\s+(.*)$/i))
+			if (packer !== undefined) {
+				if ((m = line.match(/^\s*PACK\s+(.*)$/i)) !== null)
 					this.packer[packer].pack = m[1];
-				if (line.match(/^\s*UNPACK\s+(.*)$/i))
+				if ((m = line.match(/^\s*UNPACK\s+(.*)$/i)) !== null)
 					this.packer[packer].unpack = m[1];
 				if (line.search(/^\s*END\s*$/i) != -1)
 					packer = undefined;
@@ -83,7 +83,7 @@ function SBBSEchoCfg ()
 				if (m !== null)
 					this.is_flo = true;
 
-				m = line.match(/\s*packer\*s+([^\s]+)\s+([0-9]+)\s+([0-9a-f]+)\s*$/i);
+				m = line.match(/^\s*packer\s+([^\s]+)\s+([0-9]+)\s+([0-9a-f]+)\s*$/i);
 				if (m !== null) {
 					packer = m[1];
 					this.packer[packer] = {};