diff --git a/webform_ajax.module b/webform_ajax.module
index a413362..655d0b4 100755
--- a/webform_ajax.module
+++ b/webform_ajax.module
@@ -128,9 +128,8 @@ function webform_ajax_form_webform_client_form_alter(&$form, $form_state, $form_
         // As long as buttons HTML id are causing problems, and it has bad
         // consequences on pages where Webform AJAX is active, we'll force
         // custom ids on AJAXed Webform's buttons.
-        $submit_id = drupal_html_id('edit-webform-ajax-' . $button . '-' .$form['#node']->nid);
-        $form['actions'][$button]['#attributes']['id'] = $submit_id;
-        $form['actions'][$button]['#id'] = $submit_id;
+        $form['actions'][$button]['#id'] = drupal_html_id('edit-webform-ajax-' . $button . '-' .$form['#node']->nid);
+        unset($form['actions'][$button]['#pre_render']);
       }
     }
   }
