diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
index 88c7fac4fd4158f5807212dbe6f1a71c34b6a05e..c4431088e4a5e693f9e89cd3464c8183471240b5 100644
--- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
+++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
@@ -663,8 +663,8 @@
     "        warning(f\"Offset constant is not available to correct {da}.\")\n",
     "        # Remove module from files to process.\n",
     "        del mapped_files[module_index_to_qm(mod)]\n",
-    "        karabo_da.drop(da)\n",
-    "        modules.drop(mod)\n",
+    "        karabo_da.remove(da)\n",
+    "        modules.remove(mod)\n",
     "\n",
     "    warn_missing_constants = set(dark_constants + pc_constants + ff_constants)\n",
     "    warn_missing_constants -= error_missing_constants\n",