fix bug, auth will fail sometime.