small error handler change