Fixed redo condition