bug fix for parser