fixed S3 error