diff --git a/ticdesk_org/util.py b/ticdesk_org/util.py
index a7fd7bc471fe7bbc517a337e2924e71e63a1dc6a..08f8285a0bc0a303e6e29a61c5dd761319404b15 100644
--- a/ticdesk_org/util.py
+++ b/ticdesk_org/util.py
@@ -131,7 +131,7 @@ def render_latex(template_name, context):
 
     return latex_str
 
-def tex_to_pdf(tex):
+def tex_to_pdf(latex_str):
     # Generate TEXINPUTS correctly
     texinputs = settings.TEXINPUTS + [settings.MEDIA_ROOT, os.path.abspath(os.path.dirname(__file__)), '']