fixed bug in TimeRange