fixed unresolved reference to durations variable