diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
index b49f51a07f3cd117b6449dae579b5472a8cc1b04..93ad17c2a75ad11ac14f842858b446e65bce3434 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java
@@ -183,7 +183,13 @@ public class EditBean extends IndexBean {
     
     /** @since 0.9.12 */
     public int getSigType(int tunnel) {
-        return getProperty(tunnel, I2PClient.PROP_SIGTYPE, 0);
+        String stype = getProperty(tunnel, I2PClient.PROP_SIGTYPE, "0");
+        if (stype.equals("0"))
+            return 0;
+        SigType type = SigType.parseSigType(stype);
+        if (type == null)
+            return 0;
+        return type.getCode();
     }
     
     /** @since 0.9.12 */