Fix indentation and syntax errors