fixed a bug inside s3 configuration