diff --git a/dpaste/templates/dpaste/details.html b/dpaste/templates/dpaste/details.html
index 3bea94e..f657f67 100644
--- a/dpaste/templates/dpaste/details.html
+++ b/dpaste/templates/dpaste/details.html
@@ -2,7 +2,7 @@
{% load i18n %}
-{% block title %}dpaste/{{ snippet.secret_id }} ({{ snippet.lexer }}){% endblock %}
+{% block title %}dpaste/{{ snippet.secret_id }} ({{ snippet.lexer_name }}){% endblock %}
{% block headline %}
{{ request.build_absolute_uri }}