Corrected obscure XP logic that should have just been flipped.