Correcting syntax errors