diff --git a/templates/macros.html b/templates/macros.html
index 12876d77174f4aee38e0448aec7eab70998d7e93..8b4a7ea990ed1fc56f733f87ae356a136b93b83c 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -196,14 +196,10 @@ $('#embedcodebtn').popover(
 		{% set permlogos = '<span class="fa fa-lock" aria-hidden="true"></span>' %}
 	{% endif %}
 	{% if permdescription[0] == 'l2p' %}
-		{% set permlogos %}
-		<span class="fa" aria-hidden="true" style="width: 12px; height: 14px; background-size: cover;  background-image: url('/static/l2p-logo.gif');"></span>
-		{% endset %}
+		{% set permlogos = '<span class="fa" aria-hidden="true" style="width: 12px; height: 14px; background-size: cover;  background-image: url(\'/static/l2p-logo.gif\');"></span>' %}
 	{% endif %}
 	{% if permdescription[0] == 'rwth' %}
-		{% set permlogos %}
-		<span class="fa" aria-hidden="true" style="width: 25px; height: 20px; background-size: cover;  background-image: url('/static/rwth.png');"></span>
-		{% endset %}
+		{% set permlogos = '<span class="fa" aria-hidden="true" style="width: 25px; height: 20px; background-size: cover;  background-image: url(\'/static/rwth.png\');"></span>' %}
 	{% endif %}
 
 	{% if ismod() %}