Added fix to delete keychain if it is a duplicate when should be creating a new keychain.