diff --git a/uffd/role/templates/role/show.html b/uffd/role/templates/role/show.html
index e468bbda579ea79e4797aa828a731cd1d79f1de8..971d78781e982ce28f200969a89c2a45fced56d8 100644
--- a/uffd/role/templates/role/show.html
+++ b/uffd/role/templates/role/show.html
@@ -90,7 +90,7 @@
 					</thead>
 					<tbody>
 						{% for r in roles|sort(attribute="name")|sort(attribute='name') %}
-						<tr id="include-role-{{ role.id }}">
+						<tr id="include-role-{{ r.id }}">
 							<td>
 								<div class="form-check">
 									<input class="form-check-input" type="checkbox" id="include-role-{{ r.id }}-checkbox" name="include-role-{{ r.id }}" value="1" aria-label="enabled"