diff --git a/utils/update_go_mod_version.sh b/utils/update_go_mod_version.sh
index 3970186cd2fbfbfa151106e0b690a6e84584140f..b93060af3d62232f48e588df1dcabf62609928af 100755
--- a/utils/update_go_mod_version.sh
+++ b/utils/update_go_mod_version.sh
@@ -4,7 +4,7 @@
 desired_go_version=1.19  # Replace with your desired version (e.g., "1.19" or "1.23.0")
 
 # Find all go.mod files in the current directory and its subdirectories
-go_mod_files=$(find . -type f -name "go.mod")
+go_mod_files=$(find ./.. -type f -name "go.mod")
 
 for go_mod_file in $go_mod_files; do
     # Check if the file exists and is readable