fix very nasty npe in parser