fixed common typo in error messages

fixed common typo in error messages