fixed s3 upload issue
Merge pull request #1 from xren/master

Fixed S3 upload issue