fixing bug with multiple parser calling