Fixed an issue with the s3 client.