modify some error handler