diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7dd4b3a857099b8b195f6f90cb736c55d4d2de3c..4e62d0250a01739ef63d3eb2c26880fb4334731c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,9 +54,6 @@ cache:
 # Get the project version from main POM file and store it to artifact.
 get_version:
   image: maven:3.8.3-jdk-8
-  only:
-    - develop
-    - main
   stage: build_version
   script:
     - 'PVERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate -Dexpression=project.version -q -DforceStdout)'
diff --git a/src/main/webapp/stylesheets/tohtml.xsl b/src/main/webapp/stylesheets/tohtml.xsl
index 469f4d2e144869b98f5b4a3c30f9a976a1599195..ed31ff23ff0ca38cc03519542d00884e569b7dae 100644
--- a/src/main/webapp/stylesheets/tohtml.xsl
+++ b/src/main/webapp/stylesheets/tohtml.xsl
@@ -107,7 +107,7 @@
                     </a>
                     <xsl:if test="$currentDepth &lt; $tocDepth and (descendant::div[head] or descendant::TEI)">
                             <ul>
-                                    <xsl:apply-templates>
+                                    <xsl:apply-templates mode="#current">
                                             <xsl:with-param name="currentDepth" tunnel="yes" select="$currentDepth + 1"/>
                                     </xsl:apply-templates>
                             </ul>