diff --git a/tcl/target/am335x.cfg b/tcl/target/am335x.cfg
index a5376c1d1eb33ff002372a3fb5c02618127cf0c5..af06f79ad0800a0969780caedcdd6eea6591b2c8 100644
--- a/tcl/target/am335x.cfg
+++ b/tcl/target/am335x.cfg
@@ -39,7 +39,7 @@ jtag configure $_CHIPNAME.m3_dap -event tap-enable "icepick_d_tapenable $_CHIPNA
 #
 # Main DAP
 #
-if { [info exists DAP_TAPID ] } {
+if { [info exists DAP_TAPID] } {
    set _DAP_TAPID $DAP_TAPID
 } else {
    set _DAP_TAPID 0x4b6b902f
@@ -50,7 +50,7 @@ jtag configure $_CHIPNAME.dap -event tap-enable "icepick_d_tapenable $_CHIPNAME.
 #
 # ICEpick-D (JTAG route controller)
 #
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b94402f
diff --git a/tcl/target/imx28.cfg b/tcl/target/imx28.cfg
index 0cbedce409855e099d226f531ec6def110ef8814..8c478b72e2b873e67ea2072542d0a718d56bf104 100644
--- a/tcl/target/imx28.cfg
+++ b/tcl/target/imx28.cfg
@@ -23,7 +23,7 @@ if { [info exists ENDIAN] } {
 # Note above there is 1 tap
 
 # The CPU tap
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x079264f3