diff --git a/web/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs
index 32a1b9e4b9..44ff274021 100644
--- a/web/templates/settings/add_new_bot_form.hbs
+++ b/web/templates/settings/add_new_bot_form.hbs
@@ -53,9 +53,9 @@
- {{#each realm_embedded_bots as |bot index|}}
- {{#each bot.config as |config_value config_key|}}
- {{> ../embedded_bot_config_item botname=bot.name key=config_key value=config_value}}
+ {{#each realm_embedded_bots}}
+ {{#each config}}
+ {{> ../embedded_bot_config_item botname=../name key=@key value=this}}
{{/each}}
{{/each}}