fix S3 authentication