Fix bug in start time calculation at the resuming.