diff --git a/templates/SitemapXML.ss b/templates/SitemapXML.ss
index 9f71c88..fbb2a37 100644
--- a/templates/SitemapXML.ss
+++ b/templates/SitemapXML.ss
@@ -8,7 +8,7 @@
{$Top.SitemapHost}$Link
$SitemapDate
<% if $ChangeFrequency %>$ChangeFrequency<% else %>monthly<% end_if %>
- <% if HasValue($Priority) %>$Priority<% else %>0.5<% end_if %>
+ <% if $Priority %>$Priority<% else %>0.5<% end_if %>
<% loop $SitemapImages %>