Fix the end time of the last condition.