fixed s3 issue