Fix endTime.