fix s3 truncate for the extend case