diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp
index fbb47f3d7d825b82b1a2fc856f780b6574c475ad..052b7316ef8e484175bf3aa04d85ba3c00d353d4 100644
--- a/apps/i2ptunnel/jsp/wizard.jsp
+++ b/apps/i2ptunnel/jsp/wizard.jsp
@@ -19,7 +19,7 @@
        curPage = 1;
      }
    }
-   boolean tunnelIsClient = wizardBean.getIsClient();
+   boolean tunnelIsClient = Boolean.valueOf(request.getParameter("isClient"));
    String tunnelType = request.getParameter("type");
 %>
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
@@ -74,9 +74,9 @@
             if (curPage == 1) {
             %><div id="typeField" class="rowItem">
                 <label><%=intl._("Server Tunnel")%></label>
-                <input value="0" type="radio" id="baseType" name="isClient" class="tickbox" />
+                <input value="false" type="radio" id="baseType" name="isClient" class="tickbox" />
                 <label><%=intl._("Client Tunnel")%></label>
-                <input value="1" type="radio" id="baseType" name="isClient" class="tickbox" />
+                <input value="true" type="radio" id="baseType" name="isClient" class="tickbox" />
             </div><%
             } else {
             %><input type="hidden" name="isClient" value="<%=tunnelIsClient%>" /><%