bug fix at ParseFilePath