diff --git a/templates/items/_list_subf_cat.html.ep b/templates/items/_list_subf_cat.html.ep
index a4d9e30..ef79efa 100644
--- a/templates/items/_list_subf_cat.html.ep
+++ b/templates/items/_list_subf_cat.html.ep
@@ -16,17 +16,16 @@
"><%= $_name %>
<% end %>
-<%
-foreach my $category ($category_tree->getAllChildren) { %>
+% foreach my $category ($category_tree->getAllChildren) {
<%= $cat_header->(
$category->getNodeValue,
$c->schema->resultset('Categories')->
title_from_id($category->getNodeValue)) %>
-<%
- foreach my $subforum ($category->getAllChildren) { %>
+
+% foreach my $subforum ($category->getAllChildren) {
<%= $subf_item->(
$subforum->getNodeValue,
$category->getNodeValue,
$c->schema->resultset('Subforums')->
title_from_id($subforum->getNodeValue)) %>
-<% }} %>
\ No newline at end of file
+% }}
\ No newline at end of file