Made sure the token is not empty before we try calling renew on it
Corrected an error in the sync