fixed error in tar code