diff --git a/src/SecExp/securityReport.tw b/src/SecExp/securityReport.tw
index 9491178c60e3cd4f9df5586332257d8e12ace3a1..78f985a343feafb0d1b18c6312f7bee055b2c0c3 100644
--- a/src/SecExp/securityReport.tw
+++ b/src/SecExp/securityReport.tw
@@ -604,11 +604,11 @@ Due to the deterioration of the old world countries, organized crime focuses mor
 				<<set $militiaUnits[_i].training += random(2,4) * 1.5 * $secBarracksUpgrades.training>>
 			<</if>>
 		<</for>>
-		<<set _meL = $mercUnits.length>>
+		<<set _meL = $mercUnits.length, _loyaltyTotal = 0>>
 		<<for _i = 0; _i < _meL; _i++>>
 			<br>
 			<br>$mercUnits[_i].platoonName:
-			<<set _loyaltyChange = 0, _loyaltyTotal = 0>>
+			<<set _loyaltyChange = 0>>
 			<<if $secBarracksUpgrades.loyaltyMod >= 1>>
 				<<set _loyaltyChange += 2 * $secBarracksUpgrades.loyaltyMod>>
 				is periodically sent to the indoctrination facility in the barracks for thought correction therapy.