Fix typo and updated warning message