fixed crash in parser