fix authenticate pb