fixed a parsing bug using bash sed script; TD commit a fix at the R-script instead so that the R code will be the end of parsing pipeline