diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
index ebb39ed5365a91e7539d9479d82baabf81ff4ca9..574ce6a6bdf77ab3cfcdb2db268e5bceeab53978 100644
--- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
+++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
@@ -1063,7 +1063,7 @@
     "    bins=(100, 100),\n",
     "    range=[\n",
     "        np.percentile(signal, [0.02, 99.8]),\n",
-    "        np.percentile(signal, [0.02, 99.8]),\n",
+    "        np.percentile(gain, [0.02, 99.8]),\n",
     "        ],\n",
     "    )\n",
     "    do_2d_plot(hist, (bins_x, bins_y), \"Signal (ADU)\", \"Analogue gain (ADU)\")"