fix authchoice.js