diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html
index 2d790c931a601bf0540353707a67fcd421589a46..56df510203b9c8a8a6251a524dbb9e9d3968f0e7 100644
--- a/mo/web/templates/org_contest.html
+++ b/mo/web/templates/org_contest.html
@@ -48,14 +48,14 @@
 
 <div class="btn-group">
 	<a class="btn btn-primary" href='{{ url_for('org_contest_list', id=contest.contest_id, site_id=site_id) }}'>Seznam účastníků</a>
-	{% if round.state != RoundState.preparing %}
+	{% if contest.state != RoundState.preparing %}
 	<a class="btn btn-primary" href='{{ url_for('org_contest_solutions', id=contest.contest_id, site_id=site_id) }}'>Odevzdaná řešení</a>
 	{% endif %}
 	{% if not site %}
-	{% if round.state in [RoundState.grading, RoundState.closed] %}
+	{% if contest.state in [RoundState.grading, RoundState.closed] %}
 	<a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a>
 	{% endif %}
-	{% if round.state == RoundState.preparing and round.seq > 1 %}
+	{% if contest.state == RoundState.preparing and round.seq > 1 %}
 	<a class="btn btn-primary" href='{{ url_for('org_contest_advance', contest_id=contest.contest_id) }}'>Postup z minulého kola</a>
 	{% endif %}
 	{% if can_manage %}