fixed a auth code error