diff --git a/src/SecExp/weaponsManufacturing.tw b/src/SecExp/weaponsManufacturing.tw
index 9a73e7c277e5842e750d992d104b2a811bc493c2..d5c2c758d736e214cfbc6d94941fbc1b5ed19fb3 100644
--- a/src/SecExp/weaponsManufacturing.tw
+++ b/src/SecExp/weaponsManufacturing.tw
@@ -184,9 +184,9 @@ __Markets__:
 <br>//You are free to sell to whoever you please, but expect hostile forces of a certain kind to be stronger if we'll ever meet in battle.//
 <br>
 <br>
-<<set _time = $baseUpgradeTime / $weapProductivity>>
+<<set _time = Math.ceil($baseUpgradeTime / $weapProductivity)>>
 __Upgrades__:
-<br>With our current industrial and research capabilities upgrades will be finished in <<print Math.ceil(_time)>> weeks.
+<br>With our current industrial and research capabilities upgrades will be finished in _time weeks.
 <br>
 <<if $currentUpgrade.time <= 0>>
 	<br>Security Drones:
diff --git a/src/uncategorized/industrialDairyAssignmentScene.tw b/src/uncategorized/industrialDairyAssignmentScene.tw
index 267c068780e1d076a3fb9a308bdcf480a8f0a4d9..1592c1ef37f180c3af71cf0326796cc40e3c676c 100644
--- a/src/uncategorized/industrialDairyAssignmentScene.tw
+++ b/src/uncategorized/industrialDairyAssignmentScene.tw
@@ -109,7 +109,7 @@ She does not hesitate or glance back at you. You stand by as the straps automati
 
 <<elseif $activeSlave.devotion > 60>>
 
-As she realizes her fate, the tears come quickly. "<<Master>>," she <<if !canTalk($activeSlave)<<else>><<say>>s quietly<</if>>, "i<<s>> thi<<s>> for me?" You nod, and she steps over to the machine. She lightly traces its gleaming metal, looking wistful.
+As she realizes her fate, the tears come quickly. "<<Master>>," she <<if !canTalk($activeSlave)signs<<else>><<say>>s quietly<</if>>, "i<<s>> thi<<s>> for me?" You nod, and she steps over to the machine. She lightly traces its gleaming metal, looking wistful.
 <<if ($activeSlave.amp != 1)>>
 	<<if ($dairyStimulatorsSetting > 1)>>
 	She gently touches the head of the massive phallus that will soon penetrate her anus. It's broader than her fist. "M-my butthole i<<s>>n't going to be any good for anal after thi<<s>>."
diff --git a/src/uncategorized/walkPast.tw b/src/uncategorized/walkPast.tw
index 53fe91a832989c6746de265b9fbc67a126be513f..40e73bd5c8acbd1611ed73b06326eac55e403400 100644
--- a/src/uncategorized/walkPast.tw
+++ b/src/uncategorized/walkPast.tw
@@ -826,7 +826,7 @@
 	<<else>>
 		<<set $slaves[$slaveIndices[_partnerSlave.ID]] = _partnerSlave>>
 	<</if>>
-	<<set $slaves[$slaveIndices[activeSlave.ID]] = activeSlave>>	
+	<<set $slaves[$slaveIndices[$activeSlave.ID]] = $activeSlave>>
 	<<set $target = "FRelation", _partnerSlave = null>>
 
 <<elseif ($partner == "relationship") || ($partner == "relation")>>