diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index afe95769da2495903ebd03f4bb3cb5776c2ad178..f7bb52a9b02894285d061caf5ed16c2794413158 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -453,6 +453,7 @@ def save_labelimage_as_ijroiset(label_imp, rm, filename, suffix, target):
     target : str
         the target directory in which to save the table
     """
+    rm.reset()
     command.run( Labels2Rois , False , 'imp' , label_imp , 'rm', rm).get()
     savename = filename + "_" + str(suffix) + ".zip"
     savepath = os.path.join(target, savename)