Syntax error fixing