Fixed s3 upload issue