diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index cc60547a57f228e12bf9315ef3088fbf8ef8425c..ecb5c657f92ffb984feca286665c4e3aaf15f281 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -145,17 +145,8 @@
     "\n",
     "run_numbers = [run_high, run_med, run_low]\n",
     "\n",
-    "creation_time=None\n",
-    "if use_dir_creation_date:\n",
-    "    creation_time = get_dir_creation_date(in_folder, run_high)\n",
-    "\n",
-    "print(f\"Using {creation_time} as creation time of constant.\")\n",
-    "\n",
     "run, prop, seq = run_prop_seq_from_path(in_folder)\n",
     "\n",
-    "# Read report path and create file location tuple to add with the injection\n",
-    "file_loc = f\"proposal:{prop} runs:{run_low} {run_med} {run_high}\"\n",
-    "\n",
     "report = get_report(metadata_folder)\n",
     "cal_db_interface = get_random_db_interface(cal_db_interface)\n",
     "print(f'Calibration database interface: {cal_db_interface}')\n",
@@ -271,6 +262,13 @@
     ")\n",
     "# Update run_numbers list in case it was sorted.\n",
     "run_numbers = agipd_ctrl_dark.runs\n",
+    "\n",
+    "creation_time = None\n",
+    "if use_dir_creation_date:\n",
+    "    creation_time = get_dir_creation_date(in_folder, run_numbers[0])\n",
+    "\n",
+    "print(f\"Using {creation_time} as creation time of constant.\")\n",
+    "\n",
     "if mem_cells == 0:\n",
     "    mem_cells = agipd_ctrl_dark.get_memory_cells()\n",
     "\n",
@@ -648,6 +646,8 @@
     "step_timer.start()\n",
     "\n",
     "md = None\n",
+    "# Read report path and create file location tuple to add with the injection\n",
+    "file_loc = f\"proposal:{prop} runs:{' '.join([str(r) for r in reversed(run_numbers)])}\"\n",
     "\n",
     "for qm in res:\n",
     "    db_module = qm_dict[qm][\"db_module\"]\n",