diff --git a/src/uncategorized/buySlaves.tw b/src/uncategorized/buySlaves.tw
index 9f8b8e755bf40f4120f668eb577a92865124aa17..ed4854d7c58f322853df17fa7ec69ef108761df1 100644
--- a/src/uncategorized/buySlaves.tw
+++ b/src/uncategorized/buySlaves.tw
@@ -159,7 +159,7 @@ The parts of your arcology you own can house a total of $PopCap menial slaves.
 <</if>>
 The market price of menials is ¤_menialPrice.
 <<set _optionsBreak = 0>>
-<<if $PopCap < $helots+$fuckdolls+$menialBioreactors>>
+<<if $PopCap > $helots+$fuckdolls+$menialBioreactors>>
 	[[Buy|Buy Slaves][$helots+=1,$menialDemandFactor+=1,$cash-=_menialPrice]]
 	<<if $cash > _menialPrice*10>>
 		[[(x10)|Buy Slaves][$helots+=10,$menialDemandFactor+=10,$cash-=_menialPrice*10]]
@@ -219,7 +219,7 @@ The market price of menials is ¤_menialPrice.
 <<if ($fuckdolls > 0) || ($arcologies[0].FSPaternalist == "unset")>>
 The market price of standard fuckdolls is ¤<<print _menialPrice*2>>.
 <<set _optionsBreak = 0>>
-<<if $PopCap < $helots+$fuckdolls+$menialBioreactors>>
+<<if $PopCap > $helots+$fuckdolls+$menialBioreactors>>
 <<if $arcologies[0].FSPaternalist == "unset">>
 	[[Buy|Buy Slaves][$fuckdolls+=1,$menialDemandFactor+=1,$cash-=_menialPrice*2]]
 	<<if $cash > _menialPrice*20>>
@@ -257,7 +257,7 @@ The market price of standard fuckdolls is ¤<<print _menialPrice*2>>.
 <<if ($menialBioreactors > 0) || ($arcologies[0].FSPaternalist == "unset")>>
 The market price of standard bioreactors is ¤<<print (_menialPrice-100)>>.
 <<set _optionsBreak = 0>>
-<<if $PopCap < $helots+$fuckdolls+$menialBioreactors>>
+<<if $PopCap > $helots+$fuckdolls+$menialBioreactors>>
 <<if $arcologies[0].FSPaternalist == "unset">>
 	[[Buy|Buy Slaves][$menialBioreactors+=1,$menialDemandFactor+=1,$cash-=(_menialPrice-100)]]
 	<<if $cash > (_menialPrice-100)*10>>
diff --git a/src/utility/assayWidgets.tw b/src/utility/assayWidgets.tw
index 19e052a01f6f71441761a7cc3587e424d2926038..977d9873a4d19f0d71154832cb7392f283beb1eb 100644
--- a/src/utility/assayWidgets.tw
+++ b/src/utility/assayWidgets.tw
@@ -195,7 +195,7 @@
 
 <<if ($arcologies[0].FSTransformationFetishist > 20)>>
 	<<if $args[0].lips > 70>>
-	<<if $args[0].lipsImplant/$args[0].lips < 50)>>
+	<<if ($args[0].lipsImplant/$args[0].lips < 50)>>
 		<<set $beauty -= (($args[0].lips/10)+($arcologies[0].FSTransformationFetishist/20))>>
 	<</if>>
 	<</if>>