fix bug in tsv output