fix removeAllTargets