Fixing syntax errors