fix AR error handler