fix: cduration and diagram time window fix