bug fix in parse