Reapply modes after buffer revert.