diff --git a/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html b/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html
index b6096edf..df256dbd 100644
--- a/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html
+++ b/korektury/templates/korektury/korekturovatko/moduly/stranky_pdfka.html
@@ -1,4 +1,4 @@
-{% for i in img_indexes %}
+{% for i in cisla_stran %}
   <div class='imgdiv'>
     <img
       id='img-{{i}}'
diff --git a/korektury/views.py b/korektury/views.py
index d1be1609..d77ddbba 100644
--- a/korektury/views.py
+++ b/korektury/views.py
@@ -53,7 +53,7 @@ class KorekturyView(generic.DetailView):
 
 	def get_context_data(self, **kwargs):
 		context = super().get_context_data(**kwargs)
-		context['img_indexes'] = range(self.object.stran)
+		context['cisla_stran'] = range(self.object.stran)
 		context['tagy'] = KorekturaTag.objects.all()
 		return context