diff --git a/src/pregmod/generateChild.tw b/src/pregmod/generateChild.tw
index 0aa1294b7d911b742218a33b4f3c37174b1be7ed..ac56f5b4b355f441adf4cac929f3a6264523673c 100644
--- a/src/pregmod/generateChild.tw
+++ b/src/pregmod/generateChild.tw
@@ -578,10 +578,10 @@
 <</if>>
 <<if $incubatorImprintSetting == "terror">>
 	<<set $activeSlave.origin = "She was conditioned from birth into mindless terror in an aging tank.">>
-	$activeSlave.tankBaby = 2;
+	<<set $activeSlave.tankBaby = 2>>
 <<else>>
 	<<set $activeSlave.origin = "She was conditioned from birth into trusting obedience in an aging tank.">>
-	$activeSlave.tankBaby = 1;
+	<<set $activeSlave.tankBaby = 1>>
 <</if>>
 <<set $activeSlave.career = "a slave since birth">>
 <<set $activeSlave.birthName =  $activeSlave.slaveName>>