diff --git a/PreCourlis/widgets/profile_dialog.py b/PreCourlis/widgets/profile_dialog.py
index a4c168a8f054b3f71b014dd0efb215584faa111e..a19b0829a015fad193a12b24d645cdaf23ab9b7b 100644
--- a/PreCourlis/widgets/profile_dialog.py
+++ b/PreCourlis/widgets/profile_dialog.py
@@ -378,7 +378,7 @@ class ProfileDialog(QtWidgets.QDialog, FORM_CLASS):
 
         # Check if topo_bath field is present
         if layer is not None:
-            if layer.fields().indexFromName("topo_bath") == -1:
+            if layer.fields().indexFromName("topo_bat") == -1:
                 self.message_bar.pushMessage(
                     self.tr("Missing field"),
                     self.tr(