Fix typos in error messages

Reported by Jakub Wilk, thanks!