fix pattern.tsv & component.tsv  output