fixed token duration bug