Remove bug in error handler.