--- a/bin/Engine.pl
+++ b/bin/Engine.pl
@@ -113,7 +113,7 @@
 
   if ($OldStatus eq "running" && $NewStatus ne "running")
   {
-    $ActiveBackEnd->PrepareForFork();
+    $ActiveBackEnds{'WineTestBot'}->PrepareForFork();
     my $Pid = fork;
     if (defined($Pid) && ! $Pid)
     {
@@ -196,7 +196,7 @@
 {
   my $Bits = $_[0];
 
-  $ActiveBackEnd->PrepareForFork();
+  $ActiveBackEnds{'WineTestBot'}->PrepareForFork();
   my $Pid = fork;
   if (defined($Pid) && ! $Pid)
   {
@@ -348,7 +348,7 @@
 
   if ($MaxExistingPatchId < $LatestPatchId)
   {
-    $ActiveBackEnd->PrepareForFork();
+    $ActiveBackEnds{'WineTestBot'}->PrepareForFork();
     my $Pid = fork;
     if (defined($Pid) && ! $Pid)
     {
@@ -419,7 +419,7 @@
   }
   my $BuildNo = $1;
 
-  $ActiveBackEnd->PrepareForFork();
+  $ActiveBackEnds{'WineTestBot'}->PrepareForFork();
   my $Pid = fork;
   if (defined($Pid) && ! $Pid)
   {