Correction to error handler.