diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 3f49afce0cbabedf80610d3227b9bcda3fae0e48..8b60c91bec5a312e20307c53c17fbb564c2777ab 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -48,7 +48,8 @@ do
                 ln -s ../../theme theme
 
                 # reset the theme
-                cd ../../theme
+                cd $rootDir
+                cd theme
                 git checkout -- templates/_index.html
                 cd $BLADE
                 echo " > Theme reset."