fix keyring upgrade