diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index 6948af130d057da4a476ea5c09a612a062114075..80b993c7a8ad1afc6d7e3f84c3d349b612e70ec1 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -183,13 +183,12 @@
     "    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",
+    "    if gain_mode == 0 and memory_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"
+    "    print(f\"Gain mode is manually set to {gain_mode}.\")"
    ]
   },
   {