Syntax error correction