Fixed the timing bug for run.