diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 35b3be9c5bca6c54a1565fdfcefea980a01fde7a..d4f2f830f2da13bbffeb8e777a9ef9e158999fed 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -1787,8 +1787,6 @@ class Population:
 
                 ensemble_output = extract_ensemble_json_from_string(ensemble_raw_output)
 
-                ensemble_output = extract_ensemble_json_from_string(ensemble_raw_output)
-
                 self.write_ensemble(output_file, ensemble_output)
 
             # combine ensemble chunks