fix clearing of clipboard when using the keyring's paste option