fix invalid key authentication error