fix error parser detection in the correct line
fix the parser error detection in different lines