fix issue when we call many time setAuth