diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index a051164d3d6acab727d3533f40afe222c7d83851..19a58ee29e6def3cdbe4c09d747834f5bb59310b 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -175,7 +175,8 @@ class ProcessFeedService < BaseService
 
     def url(xml = @xml)
       link = xml.at_xpath('./xmlns:link[@rel="alternate"]')
-      link['href']
+      link['href'] unless link.nil?
+      nil
     end
 
     def content(xml = @xml)
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index 74aa076fedc7f48500d97888d88e1b07de79ecdb..643c5d384c42d045bf658554ed9939e743b9cc5b 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -1,8 +1,9 @@
 if ENV['S3_ENABLED'] == 'true'
-  Paperclip::Attachment.default_options[:storage]     = :s3
-  Paperclip::Attachment.default_options[:s3_protocol] = 'https'
-  Paperclip::Attachment.default_options[:url]         = ':s3_domain_url'
-  Paperclip::Attachment.default_options[:path]        = '/:class/:attachment/:id_partition/:style/:filename'
+  Paperclip::Attachment.default_options[:storage]      = :s3
+  Paperclip::Attachment.default_options[:s3_protocol]  = 'https'
+  Paperclip::Attachment.default_options[:url]          = ':s3_domain_url'
+  Paperclip::Attachment.default_options[:s3_host_name] = "s3-#{ENV.fetch('S3_REGION')}.amazonaws.com"
+  Paperclip::Attachment.default_options[:path]         = '/:class/:attachment/:id_partition/:style/:filename'
 
   Paperclip::Attachment.default_options[:s3_credentials] = {
     bucket: ENV.fetch('S3_BUCKET'),