diff --git a/set_env.sh b/set_env.sh
index d54fb37e7c94ad04b94438d65a6f1ad503939107..ca7d40aeccd0811f1504003e0633976ac6b6494d 100755
--- a/set_env.sh
+++ b/set_env.sh
@@ -73,7 +73,7 @@ if [ ! -f $PROJECT_DIR/.socinit ]; then
     git submodule update --remote --recursive
     git submodule foreach --recursive git checkout main
     # Read proj-branch file to find out which branch each subrepo needs to be on
-    git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $PROJECT_DIR/$line && git checkout `grep $line $PROJECT_DIR/project-branch | awk '{ print $2 }'`; done
+    git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $PROJECT_DIR/$line && git checkout `grep $line $PROJECT_DIR/proj-branch | awk '{ print $2 }'`; done
     git restore $DESIGN_ROOT/.gitmodules
     touch $PROJECT_DIR/.socinit
 fi
\ No newline at end of file