fixed tar bug