Remote auth bug fix