Remove some syntax errors