diff --git a/basetheme_bootstrap/templates/registration/account.html b/basetheme_bootstrap/templates/registration/account.html
index 5a25be70ab74cc1a1499d9e277470c97a5cb2902..a0c94844e9f623b765db2216fc0b4d853981bac3 100644
--- a/basetheme_bootstrap/templates/registration/account.html
+++ b/basetheme_bootstrap/templates/registration/account.html
@@ -53,7 +53,7 @@
                 {%endif%}
                 {%endif%}
             </div>
-            <div class="card-body panel-body pt-0">
+            <div class="card-body panel-body{% if form_prefs and not form_prefs.preferences_groups %} pt-0{%endif%}">
             <button class="btn btn-primary {{btn_classes}}" type="submit">{%trans "Save my preferences"%}
             </button>
             </div>