fix call to AWS S3 wrapper