diff --git a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb
index 11d80de46a72a0ee6d8cc315ab6198f3fb20f251..9a41fa3ea3b7dd8ecd9f73951fcea3d45dac9175 100644
--- a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb
+++ b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb
@@ -324,6 +324,11 @@
     "    client=rest_cfg.calibration_client(),\n",
     ")\n",
     "\n",
+    "constant_names = list(pnccd_cal.dark_calibrations)\n",
+    "if relgain:\n",
+    "    constant_names += [\"RelativeGainCCD\"]\n",
+    "\n",
+    "\n",
     "pnccd_metadata = pnccd_cal.metadata(calibrations=constant_names)\n",
     "\n",
     "metadata = pnccd_metadata[karabo_da]\n",
@@ -338,7 +343,7 @@
     "\n",
     "# Validate the constants availability and raise/warn correspondingly. \n",
     "missing_dark_constants = set(\n",
-    "    c for c in [\"OffsetCCD\", \"NoiseCCD\", \"BadPixelsDarkCCD\"] if c not in metadata.keys())\n",
+    "    c for c in pnccd_cal.dark_calibrations if c not in metadata.keys())\n",
     "\n",
     "if missing_dark_constants:\n",
     "    raise KeyError(\n",