Fixed deactivation bug because targets are incorrectly retrieved from the manifest