diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 268ce73..acd8a24 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -215,6 +215,9 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s
     if [ -e poky.yaml ]; then
         cp poky.yaml poky.yaml.in
     fi
+    if [ -f ref-manual/svg/releases.svg ]; then
+      git checkout origin/master ref-manual/svg/releases.svg
+    fi
 
     (
         # Anything older than scarthgap needs the older buildtools
