Fixed reauthentication bug
Merge pull request #256 from dswd/fix-reauth

Fixed reauthentication bug