fix amazon s3 storage