Fix an authentication bug