diff --git a/build/scripts/build_helper.amf b/build/scripts/build_helper.amf
index 40b7d818040f0b4f5b57cd857f7b9a56ad769998..7e8e4507e4f28f0878bd18bc5e4850a857220b37 100755
--- a/build/scripts/build_helper.amf
+++ b/build/scripts/build_helper.amf
@@ -187,7 +187,6 @@ install_pistache_from_git() {
fi
git clone $GIT_URL
- git submodule update --init
cd pistache && git checkout e18ed9baeb2145af6f9ea41246cf48054ffd9907
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
mkdir _build && cd _build
@@ -238,8 +237,7 @@ install_nlohmann_from_git() {
fi
git clone $GIT_URL
- git submodule update --init
- cd json && git checkout master
+ cd json && git checkout -f v3.10.3
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
mkdir _build && cd _build
$CMAKE -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DJSON_BuildTests=OFF ..