Fix staging key support on ios