fix token delta calculation