fix timespan issue.