diff --git a/core/templates/core/user_preferences.jinja b/core/templates/core/user_preferences.jinja
index 0276197e..1aed4d94 100644
--- a/core/templates/core/user_preferences.jinja
+++ b/core/templates/core/user_preferences.jinja
@@ -6,6 +6,7 @@
{%- block additional_css -%}
+ {# importing ajax-select-index is necessary for it to be applied after HTMX reload #}
{%- endblock -%}