fix typo in error case