fix ali auth bugs.