Correction of syntax errors