fix parse error throwing