diff --git a/deploy_api_docs.sh b/deploy_api_docs.sh
index 3cb3c6044..a9d88f614 100755
--- a/deploy_api_docs.sh
+++ b/deploy_api_docs.sh
@@ -32,7 +32,8 @@ cp -r ../docs/api api
git add .
git commit -m "Publish API docs"
-git push origin $PAGES_BRANCH
cd ..
rm -rf $TEMP_DIR
+
+git push origin $PAGES_BRANCH
diff --git a/docs/api/older/3.0/couchbase-lite-ee-kermit/index.html b/docs/api/older/3.0/couchbase-lite-ee-kermit/index.html
index 833438e74..fd6f47cbc 100644
--- a/docs/api/older/3.0/couchbase-lite-ee-kermit/index.html
+++ b/docs/api/older/3.0/couchbase-lite-ee-kermit/index.html
@@ -30,7 +30,8 @@
-
+
+