Fixed the recursive loop, it adds things to targets but not all of them