fixes a bug for the token expire date