fixed triple error of scanner/parser