Fixed automate to REDO before running automate again