Fix some typos in error messages

Just a trivial fix.