diff --git a/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py b/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
index 23314553d5f28a5ea27258331ac7eee8e9f2876a..a4f0d6f35533bf44e92aec714e6e1b2bdb4d8316 100644
--- a/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
+++ b/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
@@ -82,8 +82,8 @@ class LRAutoReduction(PythonAlgorithm):
             # Type 2 is zero-attenuator direct beams
             # Type 3 is data that we don't need to treat
         else:
-            do_reduction = not is_direct_beam
             first_run_of_set, sequence_number, is_direct_beam = self._parse_title(meta_data_run, run_number)
+            do_reduction = not is_direct_beam
 
         return first_run_of_set, sequence_number, do_reduction, is_direct_beam