diff --git a/templates/helpers.html b/templates/helpers.html
index 44d2dce..a9fe2af 100644
--- a/templates/helpers.html
+++ b/templates/helpers.html
@@ -17,8 +17,8 @@
{% if prefix %}{{ prefix }} {% endif %}{% if fqdn or name=="." %}{{ name }}{% else %}{{ name | trim_end_matches(pat=".") }}{% endif %}
{% endmacro dig %}
-{% macro ip(extra, ip, text="") %}
-{{ text | default(value=ip) }}
+{% macro ip(extra, ip, text=false) %}
+{% if text %}{{ text }}{% else %}{{ ip }}{% endif %}
{% endmacro dig %}
{% macro breadcrumb_domain(extra, name) %}