Fixing syntax bugs