Fix S3 config issue after refactor.