diff --git a/src/Mods/SecExp/js/secExp.js b/src/Mods/SecExp/js/secExp.js
index fe70f9f725f05e12ade016aa225fe5d6967f5008..ff5846282ce42459a415963eadc0348556cc36dd 100644
--- a/src/Mods/SecExp/js/secExp.js
+++ b/src/Mods/SecExp/js/secExp.js
@@ -320,7 +320,7 @@ App.SecExp.battle = (function() {
 			mercsC += V.mercUnits.filter((u) => u.active === 1 && !V.rebellingID.includes(u.ID)).length;
 		}
 
-		if(input === '') {
+		if (input === '') {
 			return bots+militiaC+slavesC+mercsC+init;
 		} else if (input === 'bots') {
 			return bots;
diff --git a/src/Mods/SecExp/securityReport.tw b/src/Mods/SecExp/securityReport.tw
index c1db669cabda57deb23959b57167d31db3f1803a..75f331b8eb89614bc78b7ca83421b4ad8240ec0a 100644
--- a/src/Mods/SecExp/securityReport.tw
+++ b/src/Mods/SecExp/securityReport.tw
@@ -210,7 +210,7 @@ The security level of the arcology is
 	<<set _secGrowth *= 0.3>>
 <<else>>
 	near its effective resting point, this severely limits the influence of external factors on the change achievable this week.
-	<<if _secGrowth < 0>> <<set _secGrowth *= 0.3>> </if>>
+	<<if _secGrowth < 0>> <<set _secGrowth *= 0.3>> <</if>>
 <</if>>
 <<set _restGrowth = (_secRest - $SecExp.core.security) * 0.2>>
 <<set _newSec = Math.trunc($SecExp.core.security + _secGrowth + _restGrowth)>>