copy & reset tasks[] before running