diff --git a/Inst_eddies/get_1_outerm.f90 b/Inst_eddies/get_1_outerm.f90
index c519f30a4bbf503899a9813355ab4ef35053d782..b353610a8ee7b7849efd3ad29d924806b075e0f9 100644
--- a/Inst_eddies/get_1_outerm.f90
+++ b/Inst_eddies/get_1_outerm.f90
@@ -126,7 +126,7 @@ contains
 
                 if (n_cont == n_max_cont - 1) then
                    ! Replace the previous good contour found
-                   cont_list(n_cont) = cont_list(n_cont + 1)
+                   cont_list(n_cont) = cont_list(n_max_cont)
                 else
                    n_cont = n_cont + 1
                 end if