Attempt to fix syntax errors