file parsing bug fix