fix typo in exception message and add some explanation