Modified warning message and fixed syntax error.