diff --git a/Common/Options.cpp b/Common/Options.cpp
index c1f84ca3362bd706158a9828ae0bc072eff12acd..3106b85c4e1ea4412b473987bc950574f72a7fe2 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -5123,7 +5123,7 @@ double opt_mesh_algo2d(OPT_ARGS_NUM)
 #if defined(HAVE_FLTK)
   if(WID && (action & GMSH_GUI)) {
     switch (CTX.mesh.algo2d) {
-    case ALGO_2D_MESHADAPT:
+    case ALGO_2D_FRONTAL:
       WID->mesh_choice[2]->value(0);
       break;
     case ALGO_2D_DELAUNAY: