diff --git a/src/uncategorized/dairyReport.tw b/src/uncategorized/dairyReport.tw
index e9fcd620ba96b96c34922d124b6631ef566559c0..ab2fbb4c2f44c487e99c911384e6fe1f5229c99a 100644
--- a/src/uncategorized/dairyReport.tw
+++ b/src/uncategorized/dairyReport.tw
@@ -75,7 +75,7 @@
 	<</if>>
 	<<if $dairyRestraintsSetting != 2>> /* how much effort the MM must take to force a slave into a stall */
 		<<for _dI = 0; _dI < _DL; _dI++>>
-			<<set $i = $DairyiIDs[_dI].Index>>
+			<<set $i =  $slaveIndices[$DairyiIDs[_dI]]>>
 			<<if $slaves[$i].devotion < 20>>
 				<<set _MMWorkout++>>
 			<</if>>