Fixing S3 upload