fix typo from refactor in error handler