fix reauthentication