diff --git a/docs/magic.sh b/docs/magic.sh
index 3eba485910dc5373cf742243a683cb01b2f82944..a024d98cccf5d0c8414e6228a290b77dfda5ae5c 100755
--- a/docs/magic.sh
+++ b/docs/magic.sh
@@ -17,6 +17,8 @@ cp includes/misc-functions.tex /tmp/merge/misc-functions.tex
 
 hash="$(git rev-parse HEAD)"
 
+git fetch --all --tags
+
 for week in 7 11 3 2 4 5 6 9 10 13 14; do
   echo "week $week incoming..."
   git clean -fd