diff --git a/files/templates/userpage/userpage.html b/files/templates/userpage/userpage.html
index a686b3c50..838f8b3aa 100644
--- a/files/templates/userpage/userpage.html
+++ b/files/templates/userpage/userpage.html
@@ -3,7 +3,6 @@
{% block pagetitle %}@{{u.username}}'s profile{% endblock %}
{% block head_final %}
{% if u and u.profile_background %}
- {% set displaying_bg = True %}
{% endif %}
{% if u and (u.profilecss or u.profile_background) and not request.values.get('nocss') %}
diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html
index c98032827..5b631fa1d 100644
--- a/files/templates/util/html_head.html
+++ b/files/templates/util/html_head.html
@@ -147,7 +147,6 @@
{% endif %}
{% if background %}
- {% set displaying_bg = True %}
{% endif %}
{% endif %}