diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index 78054efaa84a738fe5e01f8759b05c2dfddef05e..2d76305f52cfe1f88747fab996f40e7265381cf0 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -198,8 +198,8 @@ def run_trackmate_dog_spot_detector(imp, spot_diameter, quality_threshold):
 
     exportSpotsAsDots = True
     exportTracksOnly = False
-    # labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_INDEX_MOVIE_UNIQUE
-    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, False) # labelIdPainting (needed in a future verion of TM)
+    labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_INDEX_MOVIE_UNIQUE
+    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting)
     label_imp.setCalibration(cal)
     imp.close()