Fixed code syntax errors