Fixed auth bug