fix timespan always 0 bug