Fix keyring scanning