fix typo in exceptions code