bugs fixed at infinite loop in parsing errors again