patch to unset the failure flag
Update autosub and autorg