diff --git a/website/templates/_bug.html b/website/templates/_bug.html
index e86a719fe..2c2e8cf01 100644
--- a/website/templates/_bug.html
+++ b/website/templates/_bug.html
@@ -40,7 +40,7 @@
- {% with user_issue_upvoted_list=bug.user.userprofile.issue_upvoted.all %}
+ {% with user_issue_upvoted_list=user.userprofile.issue_upvoted.all %}
{% if user_issue_upvoted_list and bug in user_issue_upvoted_list %}