fix one of the problems with s3 example