typo in error message fixed