diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index b100cec8a2f3bf15e0437493461c10107e891ced..6948af130d057da4a476ea5c09a612a062114075 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -181,15 +181,15 @@
     "if gain_mode < 0:\n",
     "    gain_mode = ctrl_data.get_gain_mode()\n",
     "    print(f\"Gain mode is {gain_mode} ({ctrl_data.run_mode})\")\n",
+    "    # JF corrections in burst mode are only supported when no gain switching occurs.\n",
+    "    # Always retrieve fixed gain constant for burst mode.\n",
+    "    if gain_mode == 0 and mem_cells > 1:\n",
+    "        print(\"By default fixed gain constant will be retrieved for burst mode data,\"\n",
+    "            \" even for dynamic gain data.\")\n",
+    "        gain_mode = 1\n",
     "else:\n",
     "    print(f\"Gain mode is manually set to {gain_mode}.\")\n",
-    "\n",
-    "# JF corrections in burst mode are only supported when no gain switching occurs.\n",
-    "# Always retrieve fixed gain constant for burst mode.\n",
-    "if gain_mode == 1 and mem_cells > 1:\n",
-    "    print(\"By default fixed gain constant will be retrieved for burst mode data,\"\n",
-    "          \" even for dynamic gain data.\")\n",
-    "    gain_mode = 1"
+    "\n"
    ]
   },
   {