fix a bug with keyring/keyfetch