diff --git a/webform_share.module b/webform_share.module
old mode 100644
new mode 100755
index 2dec2ec..b59e134
--- a/webform_share.module
+++ b/webform_share.module
@@ -147,7 +147,7 @@ function webform_share_components_update_form_submit($form, &$form_state) {
         unset($existing_components[$component['form_key']]);
       }
       else {
-        $cid = $next_id++;
+        $cid = isset($component['cid']) ? $component['cid'] : $next_id++;
       }
       $component['cid'] = $cid;
       $component['nid'] = $node->nid;
