Fix up syntax errors