diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw
index 4b927c4020536e12aefbbc709c392a87b73a3098..b1be9dc6a07a86dc4a21b2cacd5253e969b1b5a1 100644
--- a/src/uncategorized/arcmgmt.tw
+++ b/src/uncategorized/arcmgmt.tw
@@ -681,7 +681,7 @@ _SCD = Math.trunc(($upperClass * ($slaveDemandU + _slaveDemandU)) + ($topClass *
 			<br>@@.red;<<print _NPCSlavesSold>> slaves were sold by your inhabitants. They've got more than enough of them already.
 		<<elseif _NPCSlavesSold > 0>>
 			<br>@@.red;One slave was sold by your inhabitants. They've got more than enough of them already.
-		</if>
+		<</if>>
 	<</if>>
 /*Selling excess slaves for profit*/
 <<elseif $NPCSlaves > _SCD * 1.2>>
@@ -693,7 +693,7 @@ _SCD = Math.trunc(($upperClass * ($slaveDemandU + _slaveDemandU)) + ($topClass *
 			<br>@@.red;<<print _NPCSlavesSold>> slaves were sold by your inhabitants. They saw an opportunity for profit.
 		<<elseif _NPCSlavesSold > 0>>
 			<br>@@.red;One slave was sold by your inhabitants. They saw an opportunity for profit.
-		</if>		
+		<</if>>		
 	<</if>>
 <</if>>
 /*Buying slaves because they are really cheap*/
@@ -964,7 +964,7 @@ This week, rents from $arcologies[0].name came to @@.yellowgreen;<<print cashFor
 <<set _earnings = 0>>
 You own
 <<if $helots > 0>>
-	<<if $helots > Math.trunc((_LSCD / ($slaveProductivity + _slaveProductivity) - _SCD)>>
+	<<if $helots > Math.trunc(_LSCD / ($slaveProductivity + _slaveProductivity) - _SCD)>>
 		<<set _earnings += Math.trunc((_LSCD / ($slaveProductivity + _slaveProductivity) - _SCD) * 10>>
 		<br>@@.red;more menial slaves than there was work@@, consider selling some. You own
 	<<else>>