Fixed invalid key conversion when calling on_friend_request