diff --git a/templates/postform.tmpl b/templates/postform.tmpl
index 9fb651e..421b118 100644
--- a/templates/postform.tmpl
+++ b/templates/postform.tmpl
@@ -15,7 +15,7 @@
- {{if gt (len .Formats) 0}}
+ {{if .Formats}}
{{$defFormat := .DefaultFormat}}