bugs in the new error handler.