diff --git a/app/models/project.rb b/app/models/project.rb
index a1aa1d5fdbc31b5c427b24125bcb0fac53445540..2a530715a9e5cbf09fb20617b252865d91fe05d1 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -420,9 +420,8 @@ class Project < ActiveRecord::Base
   end
 
   def create_or_update_import_data(credentials)
-    project_import_data = import_data || ProjectImportData.new
+    project_import_data = import_data || build_import_data
     project_import_data.credentials = credentials
-    project_import_data.project_id = id
     project_import_data.save
   end