diff --git a/resources/templates/provision/grandstream/ht801/{$mac}.xml b/resources/templates/provision/grandstream/ht801/{$mac}.xml
index 2f78fac93e..0aaba031ab 100644
--- a/resources/templates/provision/grandstream/ht801/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht801/{$mac}.xml
@@ -91,6 +91,7 @@
{$grandstream_firmware_upgrade_protocol}
{else}
2
+ {/if}
diff --git a/resources/templates/provision/grandstream/ht802/{$mac}.xml b/resources/templates/provision/grandstream/ht802/{$mac}.xml
index 635c29684b..92f20407d9 100644
--- a/resources/templates/provision/grandstream/ht802/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht802/{$mac}.xml
@@ -91,6 +91,7 @@
{$grandstream_firmware_upgrade_protocol}
{else}
2
+ {/if}