fix token getting time