Fix bug when sigining out of a managed account.