Fix to recognition of rank upgrades