fixed the duringTime keeps 3600s all the time even though the time is less than 3600s.