fix keychain check