domain auth bug fix