diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js
index f4a966328c1..c7767b9cf66 100644
--- a/apps/user_ldap/js/wizard/wizardTabElementary.js
+++ b/apps/user_ldap/js/wizard/wizardTabElementary.js
@@ -205,8 +205,8 @@ OCA = OCA || {};
onNewConfiguration: function(view, result) {
if(result.isSuccess === true) {
$(view.configChooserID + ' option:selected').removeAttr('selected');
- var html = '';
- $(view.configChooserID + ' option:last').before(html);
+ var html = '';
+ $(view.configChooserID + ' option:last').after(html);
}
},