fix tar bug