fix of the end time