diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw
index 5ce39ffbf6a1b800f6a22e12ccadea76f2e57d89..cdc0f45faf6f818465e8ae7effd32d0f55157f0e 100644
--- a/src/uncategorized/BackwardsCompatibility.tw
+++ b/src/uncategorized/BackwardsCompatibility.tw
@@ -1926,30 +1926,25 @@ Setting missing global variables:
 <<if ndef $clothesBoughtSwimwear>>
 	<<set $clothesBoughtSwimwear = 0>>
 <</if>>
-<<if ndef $buckets>>
-	<<set $buckets = 0>>
-<</if>>
-
 <<if ndef $clothesBoughtMaternityDress>>
 	<<set $clothesBoughtMaternityDress = 0>>
 <</if>>
-
 <<if ndef $clothesBoughtMaternityLingerie>>
 	<<set $clothesBoughtMaternityLingerie = 0>>
 <</if>>
-
 <<if ndef $clothesBoughtLazyClothes>>
 	<<set $clothesBoughtLazyClothes = 0>>
 <</if>>
+<<if ndef $buckets>>
+	<<set $buckets = 0>>
+<</if>>
 
 <<if ndef $assistantFSAppearance>>
 	<<set $assistantFSAppearance = "default">>
 <</if>>
-
 <<if ndef $universalRulesRest>>
 	<<set $universalRulesRest = 0>>
 <</if>>
-
 <<if ndef $universalRulesNewSlavesRA>>
 	<<set $universalRulesNewSlavesRA = 1>>
 <</if>>
@@ -1957,11 +1952,9 @@ Setting missing global variables:
 <<if ndef $hormoneUpgradeMood>>
 	<<set $hormoneUpgradeMood = 0>>
 <</if>>
-
 <<if ndef $hormoneUpgradeShrinkage>>
 	<<set $hormoneUpgradeShrinkage = 0>>
 <</if>>
-
 <<if ndef $hormoneUpgradePower>>
 	<<set $hormoneUpgradePower = 0>>
 <</if>>
@@ -2082,6 +2075,17 @@ Setting missing global variables:
 <<if ndef $traitorWeeks>>
 	<<set $traitorWeeks = 0>>
 <</if>>
+<<if ndef $rivalGender>>
+	<<if ($rivalOwner > 0)>>
+		<<if random(0,99) <= $seeDicks>>
+			<<set $rivalGender = 2>>
+		<<else>>
+			<<set $rivalGender = 1>>
+		<</if>>
+	<<else>>
+		<<set $rivalGender = 0>>
+	<</if>>
+<</if>>
 
 /* Job Fulfillment Center */
 <<if ndef $JFCOrder>>