fixed s3 problem