diff --git a/contrib/images/babylond/Dockerfile b/contrib/images/babylond/Dockerfile
index 01118ba38..344877e0b 100644
--- a/contrib/images/babylond/Dockerfile
+++ b/contrib/images/babylond/Dockerfile
@@ -20,6 +20,7 @@ RUN go mod download
 COPY ./ /go/src/github.com/babylonlabs-io/babylon/
 # If version is set, then checkout this version
 RUN if [ -n "${VERSION}" ]; then \
+        git fetch --all; \
         git checkout -f ${VERSION}; \
     fi