Fix typo of error classes and messagees