fix bug in fetch tar