Fix the way packs are detected