fixed bug with re-auth