diff --git a/notebooks/LPD/LPD_Correct_Fast.ipynb b/notebooks/LPD/LPD_Correct_Fast.ipynb
index 7a1e23e81351caebd96b02cf8c987b1605a9e1ca..4a93071a535f430c18d321c2991fadb7bf579578 100644
--- a/notebooks/LPD/LPD_Correct_Fast.ipynb
+++ b/notebooks/LPD/LPD_Correct_Fast.ipynb
@@ -517,6 +517,8 @@
     "            in_cell = tmp_cell[sel]\n",
     "            in_pulse = tmp_pulse[sel]\n",
     "            in_raw = in_raw[sel]\n",
+    "\n",
+    "            frame_counts -= (3 * drop_last_frames_parallelgain)\n",
     "            \n",
     "            # Disable gain indices to not combine.\n",
     "            parallel_gain_indices = None\n",