Fixed test port
diff --git a/templates/collections.html.ep b/templates/collections.html.ep
index 0102536..7399ea4 100644
--- a/templates/collections.html.ep
+++ b/templates/collections.html.ep
@@ -12,6 +12,6 @@
   </li>
 % };
 </ul>
-% if (stash('test_port')) {
+% if (korap_test_port()) {
 <p style="font-size: 9pt; padding-left: 1em">Index port: <%= $c->url_for($c->config('KorAP')->{'api-0.1'})->port %></p>
 % };