advice(auto-revert-handler): bugfix