diff --git a/roles/inspircd/templates/etc/inspircd/inspircd.conf.2 b/roles/inspircd/templates/etc/inspircd/inspircd.conf.2
index d938645..d3faecf 100644
--- a/roles/inspircd/templates/etc/inspircd/inspircd.conf.2
+++ b/roles/inspircd/templates/etc/inspircd/inspircd.conf.2
@@ -142,8 +142,8 @@
     password="{{ oper.password }}"
     type="{{ oper.type }}"
     {% if 'class' in oper %}class="{{ oper.class }}"{% endif %}
-    {% if 'hash' in oper %}hash="{{ hash.class }}"{% endif %}
-    {% if 'vhost' in oper %}vhost="{{ vhost.class }}"{% endif %}>
+    {% if 'hash' in oper %}hash="{{ oper.hash }}"{% endif %}
+    {% if 'vhost' in oper %}vhost="{{ oper.vhost }}"{% endif %}>
 
 {% endfor %}