diff --git a/templates/timesheet/layout-edit.html.twig b/templates/timesheet/layout-edit.html.twig
index c0ae2c6c..2b92daa9 100644
--- a/templates/timesheet/layout-edit.html.twig
+++ b/templates/timesheet/layout-edit.html.twig
@@ -71,16 +71,17 @@
{% endblock %}
{% block form_after %}
{% if form.begin is defined and form.end is defined and form.duration is defined %}
+ {% set blockPrefix = form.vars.id %}