diff --git a/lib/spaceship/provisioning_profile.rb b/lib/spaceship/provisioning_profile.rb
index <HASH>..<HASH> 100644
--- a/lib/spaceship/provisioning_profile.rb
+++ b/lib/spaceship/provisioning_profile.rb
@@ -310,8 +310,10 @@ module Spaceship
       unless certificate_valid?
         if self.kind_of?Development
           self.certificates = [Spaceship::Certificate::Development.all.first]
+        elsif self.kind_of?InHouse
+          self.certificates = [Spaceship::Certificate::InHouse.all.first]
         else
-          self.certificates = [Spaceship::Certificate::Production.all.first]
+          self.certificates = [Spaceship::Certificate::Production.all.first]  
         end
       end
Added support for repairing enterprise profiles