diff --git a/firewalld/files/zone.xml b/firewalld/files/zone.xml
index eb9d4b9..6525d71 100644
--- a/firewalld/files/zone.xml
+++ b/firewalld/files/zone.xml
@@ -56,8 +56,8 @@
{%- endfor %}
{%- endif %}
-{%- if 'icmp_block_inversion' in zone %}
-
+{%- if 'icmp_block_inversion' in zone and zone.icmp_block_inversion %}
+
{%- endif %}
{%- if 'masquerade' in zone %}
{%- if zone.masquerade %}