diff --git a/uc_pma.js b/uc_pma.js
old mode 100755
new mode 100644
index 0f4c4c7..49d6957
--- a/uc_pma.js
+++ b/uc_pma.js
@@ -16,29 +16,35 @@ $(document).ready(
  * Update the payment method line item to reflect any payment specific subtotal adjustments
  */
 function update_method_line_item(path) {
-  var order = serializeOrder();
+  if (!!path) {
+    var order = serializeOrder();
 
-  if (!!order) {
-    // Get the timestamp for the current update.
-    var this_update = new Date();
+    if (!!order) {
+      // Get the timestamp for the current update.
+      var this_update = new Date();
 
-    // Set the global timestamp for the update.
-    method_update = this_update.getTime();
+      // Set the global timestamp for the update.
+      method_update = this_update.getTime();
 
-    // Make the post to get the details for the chosen payment method.
-    $.post(Drupal.settings.basePath + 'cart/checkout/method_items/' + path, { order: order },
-      function(adjustment) {
-        if (this_update.getTime() == method_update) {
-          var return_values = adjustment.split('|');
-          if(return_values[0] && (return_values[0] >= .01 || return_values[0] <= -.01)) {
-            set_line_item('payment_method', return_values[1], return_values[0], 1);
-          }
-          else {
-            remove_line_item('payment_method');
-            render_line_items();
+      // Make the post to get the details for the chosen payment method.
+      $.post(Drupal.settings.basePath + 'cart/checkout/method_items/' + path, { order: order },
+        function(adjustment) {
+          if (this_update.getTime() == method_update) {
+            var return_values = adjustment.split('|');
+            if(return_values[0] && (return_values[0] >= .01 || return_values[0] <= -.01)) {
+              set_line_item('payment_method', return_values[1], return_values[0], 1);
+            }
+            else {
+              remove_line_item('payment_method');
+              render_line_items();
+            }
           }
         }
-      }
-    );
+      );
+    }
+  }
+  else {
+    remove_line_item('payment_method');
+    render_line_items();
   }
 }
