diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index ee72412367ee4535ebb68c046c377db51f415d82..61ffef34c44542fd7408006a6e96c0b6dfcdc2fb 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -157,15 +157,17 @@
     "print(f\"Processing a total of {total_sequences} sequence files\")\n",
     "table = []\n",
     "fi = 0\n",
-    "for i, key in enumerate(mapped_files):\n",
-    "    for k, f in enumerate(list(mapped_files[key].queue)):\n",
-    "        if k == 0:\n",
-    "            table.append((fi, karabo_da[i], k, f))\n",
-    "        else:\n",
-    "            table.append((fi, \"\", k,  f))\n",
-    "        fi += 1\n",
-    "md = display(Latex(tabulate.tabulate(table, tablefmt='latex',\n",
-    "                                     headers=[\"#\", \"module\", \"# module\", \"file\"])))\n",
+    "# avoid creating a table in case of 0 sequences\n",
+    "if total_sequences:\n",
+    "    for i, key in enumerate(mapped_files):\n",
+    "        for k, f in enumerate(list(mapped_files[key].queue)):\n",
+    "            if k == 0:\n",
+    "                table.append((fi, karabo_da[i], k, f))\n",
+    "            else:\n",
+    "                table.append((fi, \"\", k,  f))\n",
+    "            fi += 1\n",
+    "    md = display(Latex(tabulate.tabulate(table, tablefmt='latex',\n",
+    "                                         headers=[\"#\", \"module\", \"# module\", \"file\"])))\n",
     "\n",
     "# restore the queue\n",
     "mmf = map_modules_from_folder(in_folder, run, path_template, karabo_da, sequences)\n",