Removed debug message and fixed syntax error