Fix crash in parser.js