Fixes S3 configuration