fixed error in s3 directory