Fix typo in doc and error string