diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index 0c42fbf00e130a80e3ba3cad3674327af5b03114..2bbd1e5da5550a1059d9841264d5bea0289467bb 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -494,7 +494,7 @@ for index, channel in enumerate(processing_channels):
     channel = int(channel)
     quality_threshold = float(quality_thresholds[index])
     spots_channel = BFopen_image(path_to_image, channel, series_number)
-    spots_label_imp = run_trackmate_dog_spot_detector(spots_channel, quality_threshold)
+    spots_label_imp = run_trackmate_dog_spot_detector(spots_channel, spot_diameter, quality_threshold)
     save_image_as_IJtif(spots_label_imp, filename, "spots_ch" + str(channel), parent_dir)
     save_labelimage_as_ijroiset(spots_label_imp, filename, "spots_ch" + str(channel), parent_dir)
     spots_binary_imp = convert_labelimage_to_binary(spots_label_imp)