diff --git a/PhysicsAnalysis/TopPhys/xAOD/TopEventSelectionTools/Root/JetFlavorPlots.cxx b/PhysicsAnalysis/TopPhys/xAOD/TopEventSelectionTools/Root/JetFlavorPlots.cxx
index 8ce90a222d454175396511b25861d37a58f8b0b5..c87a3379fb16f514bf0dbfe0a70b60db6bc221cc 100644
--- a/PhysicsAnalysis/TopPhys/xAOD/TopEventSelectionTools/Root/JetFlavorPlots.cxx
+++ b/PhysicsAnalysis/TopPhys/xAOD/TopEventSelectionTools/Root/JetFlavorPlots.cxx
@@ -184,9 +184,10 @@ namespace top {
       else if (m_PMGTruthWeights->hasWeight("muR=05,muF=05")) scaleWeight = m_PMGTruthWeights->getWeight("muR=05,muF=05"); // for some other generator setups
       else top::check(m_PMGTruthWeights->hasWeight(" muR = 0.5, muF = 0.5 "), "JetFlavorPlots::apply(): Weight \" muR = 0.5, muF = 0.5 \" not found. Please report this message!");
       if (m_doRadHighNoVar3c) double eventWeight = scaleWeight; // don't take Var3 weight into account
-      else: // m_doRadHighNoVar3c is false
-	top::check(m_PMGTruthWeights->hasWeight("Var3cUp"), "JetFlavorPlots::apply(): Weight \"Var3cUp\" not found. Please report this message!");
+      else { // m_doRadHighNoVar3c is false
+        top::check(m_PMGTruthWeights->hasWeight("Var3cUp"), "JetFlavorPlots::apply(): Weight \"Var3cUp\" not found. Please report this message!");
         double eventWeight = scaleWeight * m_PMGTruthWeights->getWeight("Var3cUp") / nominalWeight;
+      }
       if (event.m_isLoose) FillHistograms(m_hists_RadHigh_Loose, eventWeight, event);
       else FillHistograms(m_hists_RadHigh, eventWeight, event);
     }
@@ -202,9 +203,10 @@ namespace top {
       else if (m_PMGTruthWeights->hasWeight("muR=20,muF=20")) scaleWeight = m_PMGTruthWeights->getWeight("muR=20,muF=20"); // for some other generator setups
       else top::check(m_PMGTruthWeights->hasWeight(" muR = 2.0, muF = 2.0 "), "JetFlavorPlots::apply(): Weight \" muR = 2.0, muF = 2.0 \" not found. Please report this message!");
       if (m_doRadLowNoVar3c) double eventWeight = scaleWeight; // don't take Var3 weight into account
-      else: // m_doRadLowNoVar3c is false
-	top::check(m_PMGTruthWeights->hasWeight("Var3cDown"), "JetFlavorPlots::apply(): Weight \"Var3cDown\" not found. Please report this message!");
+      else { // m_doRadLowNoVar3c is false
+      	top::check(m_PMGTruthWeights->hasWeight("Var3cDown"), "JetFlavorPlots::apply(): Weight \"Var3cDown\" not found. Please report this message!");
         double eventWeight = scaleWeight * m_PMGTruthWeights->getWeight("Var3cDown") / nominalWeight;
+      }
       if (event.m_isLoose) FillHistograms(m_hists_RadLow_Loose, eventWeight, event);
       else FillHistograms(m_hists_RadLow, eventWeight, event);
     }