Fix display of error message
Fix a typo, and incorrect comment