Fixed the AllTargets routine