bug when renewing a token fixed