diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index 2bbd1e5da5550a1059d9841264d5bea0289467bb..9fd778b659cdd91be97a378af976ca617c54f418 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -514,4 +514,5 @@ for index, channel in enumerate(processing_channels):
 
 results_table.show("Spots")
 save_results_table(results_table, filename, "Spots", parent_dir)
+IJ.run("Collect Garbage", "");
 IJ.log("DONE")
\ No newline at end of file