small fix for the error handler.