fix typo in error messages
Merge pull request #3258 from jrudolph/w/fix-typo-that-that-occurs-twice-in-error-messages

fix typo in error messages