diff --git a/en_US.ISO8859-1/htdocs/ports/portindex b/en_US.ISO8859-1/htdocs/ports/portindex
index a3c30c021e..e143074fca 100755
--- a/en_US.ISO8859-1/htdocs/ports/portindex
+++ b/en_US.ISO8859-1/htdocs/ports/portindex
@@ -355,8 +355,8 @@ EOF
 	  "<li><a href=\"$key.html\">\u$key</a> <em>($stats{$key})</em>";
 	if ($category_description{$key}{desc}) {
 	  print $moutf " -- " . $category_description{$key}{desc};
-	print $moutf "</li>\n";
 	}
+	print $moutf "</li>\n";
       }
       print $moutf "</ul>\n";
     }