Fix missing endtime