Fixed minor template bugs
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 160b8e9..5f2951c 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -50,7 +50,7 @@
<div id="searchbar">
%= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => 'Find ...'
<button type="submit"><i class="fa fa-search"></i></button>
-% if (stash('test_port')) {
+% if (korap_test_port()) {
<button type="submit" name="action" value="inspect"><i class="fa fa-code"></i></button>
% };
<i onclick="hint.popUp()" class="fa fa-arrow-circle-down show-hint"></i>