fixed two typos in error messages