Fix syntax errors