added protection against itterating all run tasks.