Fix an always-download-pack-resource bug.