diff --git a/phpBB/adm/style/acp_groups.html b/phpBB/adm/style/acp_groups.html
index 3660ec098e..c526772ae2 100644
--- a/phpBB/adm/style/acp_groups.html
+++ b/phpBB/adm/style/acp_groups.html
@@ -113,7 +113,7 @@
{L_AVATAR_EXPLAIN}
- - {% if AVATAR_HTML %}{{ AVATAR_HTML }}{% else %}
{% endif %}
+ - {% if AVATAR_HTML %}{{ AVATAR_HTML }}{% else %}
{% endif %}
diff --git a/phpBB/adm/style/acp_users_avatar.html b/phpBB/adm/style/acp_users_avatar.html
index d9a1c89ccd..17aef46bd3 100644
--- a/phpBB/adm/style/acp_users_avatar.html
+++ b/phpBB/adm/style/acp_users_avatar.html
@@ -5,7 +5,7 @@
{ERROR}
{L_AVATAR_EXPLAIN}
- - {% if AVATAR_HTML %}{{ AVATAR_HTML }}{% else %}
{% endif %}
+ - {% if AVATAR_HTML %}{{ AVATAR_HTML }}{% else %}
{% endif %}
diff --git a/phpBB/assets/javascript/phpbb-avatars.js b/phpBB/assets/javascript/phpbb-avatars.js
index c67a970473..102dfd0ad4 100644
--- a/phpBB/assets/javascript/phpbb-avatars.js
+++ b/phpBB/assets/javascript/phpbb-avatars.js
@@ -18,7 +18,7 @@
$buttons: $('#avatar-cropper-buttons'),
/** @type {jQuery} */
- $box: $('#avatar-box'),
+ $box: $('.c-avatar-box'),
/** @type {jQuery} */
$data: $('#avatar-cropper-data'),
diff --git a/phpBB/styles/prosilver/template/ucp_avatar_options.html b/phpBB/styles/prosilver/template/ucp_avatar_options.html
index cf7a68b513..941a22ab45 100644
--- a/phpBB/styles/prosilver/template/ucp_avatar_options.html
+++ b/phpBB/styles/prosilver/template/ucp_avatar_options.html
@@ -8,7 +8,7 @@
{ERROR}
{L_AVATAR_EXPLAIN}
- - {AVATAR_HTML}

+ - {AVATAR_HTML}
