diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html
index d642cc82a..d5edac703 100644
--- a/files/templates/sidebar_WPD.html
+++ b/files/templates/sidebar_WPD.html
@@ -53,7 +53,7 @@
- {% if v and v.mods_hole(hole.name) %}
+ {% if v and hole and v.mods_hole(hole.name) %}
/h/{{hole}} SETTINGS
/h/{{hole}} LOG
/h/{{hole}} FOLLOWERS