Fix auth bug