diff --git a/form_builder.js b/form_builder.js
index 1557fe0..8e39e53 100644
--- a/form_builder.js
+++ b/form_builder.js
@@ -121,6 +121,9 @@ Drupal.behaviors.formBuilderTabs.attach = function(context) {
   $tabs = $(tabs);
   $fieldsets.filter(':first').before($close).before($tabs);
 
+  // Remove 'fieldset-legend' class from tabs.
+  $tabs.find('.fieldset-legend').removeClass('fieldset-legend');
+
   // Hide all the fieldsets except the first.
   $fieldsets.not(':first').css('display', 'none');
   $tabs.find('li:first').addClass('active').click(Drupal.formBuilder.clickCancel);
