Fixed automated execution bug