Fixed the infinite loop fix
Still looped if one or more agents were finished deploying