Fix bug in stop time