Fix S3 connection.