Fix bugs in resume time stamp.